package com.study.sleepstudy;

import java.text.SimpleDateFormat;
import java.util.Date;

public class sleepTest {
    public static void main(String[] args) throws InterruptedException {
        while (true) {
            Date date = new Date(System.currentTimeMillis());
            Thread.sleep(1000);
            System.out.println(new SimpleDateFormat("HH:mm:ss").format(date));
        }
    }
}
